// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from '@/App'
import 'babel-polyfill'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router'
// import store from '@/store'
import '@/utils/Constant'
import '@/assets/css/app.css'
import Print from '@/utils/print'
import '@/utils/getPy.js'
import '@/utils/getFirstLetter.js'
import PluginConfirm from "@/components/PluginConfirm.vue"
import axios from '@/utils/http';
import "@/lib/font/iconfont.css";
import '@/directives/directives.js';
import '@/directives/index.js';
import '@/filter/index';

import rules from "@/utils/rules";
import moment from 'moment'
import echarts from 'echarts'
// import store from '@/store/index.js'
Vue.prototype.rules = rules;
Vue.prototype.Print = Print;
Vue.prototype.moment = moment;
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false
Vue.use(Element)

Vue.component('PluginConfirm', PluginConfirm);
/* eslint-disable no-new */
Vue.prototype.router = router;
Vue.prototype.$axios = axios;
new Vue({
  el: '#app',
  // store, //这里加入了store对象之后，每个组件中使用 this.$store可以访问到这个对象
  router,
  components: { App },
  template: '<App/>'
})
